/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ht7;

import structure5.Hashtable;

/**
 *
 * @author Josué Barrientos - 09049
 */
public class WordHashTable implements WordSet{
    
    private Hashtable<String, Word> tabla;
    
    public WordHashTable(){
        tabla=new Hashtable();        
    }
    
    @Override
    public void add(Word wordObject) {
        tabla.put(wordObject.getWord(), wordObject);
    }

    @Override
    public Word get(Word word) {
        return tabla.get(word.getWord());
    }

}
